﻿<%@ Page Title="Оформление заказа" Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.master" 
CodeBehind="EditOrderForm.aspx.cs" Inherits="compshop.web.EditOrderForm" %>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

    <div id="header" style="font-size: 18px; width: 160px; height: 100%; float: left;" align="left">
        <p align="center">
            <asp:Image ID="imgBasket" runat="server" Height="130px" 
                        ImageUrl="~/images/car.png"  Width="130px" />
            Оформление заказа
        </p>       
    </div>

    <div style="padding: 20px 0px 20px 20px; background-color:#94BAB3; text-align: left; width: 600px;
        font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; float: left;">

        <div style="float:left; width: 100%; height: 40px; text-align:center">
            <asp:Label ID="lblOrder" runat="server" Text="Ваш заказ" Font-Size="16px"></asp:Label>
        </div>

        <div style="float:left; width: 100%;">
            <asp:PlaceHolder ID="plholderOrder" runat="server"></asp:PlaceHolder>
        </div>

        <div style="float:left; margin: 10px 0 0 0;">
            <asp:Label ID="lblS" runat="server" Text="Сумма: " Width="280px" BackColor="#D7EBFF" Height="18px"></asp:Label>
        </div>

        <div style="float:left; margin: 10px 0 0 10px">
            <asp:Label ID="lblSumma" runat="server"  BackColor="#D7EBFF" Height="18px"></asp:Label>
        </div>
    </div>
 
    <div style="padding: 20px 0px 20px 20px; background-color: #94BAB3; text-align: left; 
        float: left; width: 600px; margin-top: 10px;
        font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px;">

        <div style="float:left">
            <asp:Label ID="lblFname" runat="server" Text="Имя"  Width="150px"/>
            <asp:TextBox ID="tboxFname" runat="server" Width="200"/>

            <asp:RequiredFieldValidator runat="server" ControlToValidate="tboxFname"
            Display="Dynamic" ForeColor="Red" Font-Size="12px">
                Не заполнено!
            </asp:RequiredFieldValidator>

            <asp:RegularExpressionValidator runat="server" ControlToValidate="tboxFname" Display="Dynamic"
            ValidationExpression="[А-Яа-я]{2,100}" ForeColor="Red" Font-Size="12px">
                <img src="images/errorInput.png" /> Некорректно введенное имя!
            </asp:RegularExpressionValidator> 
        </div>

        <div style="float:left; margin: 10px 0 0 0">
            <asp:Label ID="lblLname" runat="server" Text="Фамилия" Width="150px"/>
            <asp:TextBox ID="tboxLname" runat="server" Width="200"/>

            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tboxLname"
            Display="Dynamic" ForeColor="Red" Font-Size="12px">
                Не заполнено!
            </asp:RequiredFieldValidator>

            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tboxLname" Display="Dynamic"
            ValidationExpression="[А-Яа-я][А-Яа-я-]{2,99}" ForeColor="Red" Font-Size="12px">
                <img src="images/errorInput.png" /> Некорректно введенная фамилия!
            </asp:RegularExpressionValidator>
        </div>

        <div style="float:left; margin: 10px 0 0 0">
            <asp:Label ID="lblPhone" runat="server" Text="Телефон" Width="110px"/>
            <asp:Label ID="lblPref" runat="server" Text="+38" Width="35px"/>
            <asp:TextBox ID="tboxPhone" runat="server" Width="200"/>

            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tboxPhone"
            Display="Dynamic" ForeColor="Red" Font-Size="12px">
                Не заполнено!
            </asp:RequiredFieldValidator>

            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="tboxPhone" Display="Dynamic"
            ValidationExpression="\d{10}" ForeColor="Red" Font-Size="12px">
                <img src="images/errorInput.png" /> Некорректно введенный номер!
            </asp:RegularExpressionValidator>
        </div>

        <div style="float:left; margin: 10px 0 0 0">
            <asp:Label ID="lbl" runat="server" Text="Филиал" Width="150px"/>
            <asp:DropDownList ID="ddlDepartment" runat="server" Width="150px"/>
        </div> 
          
        <div style="float:left; margin: 20px  0 0 0; width: 100%; height: 30px; text-align: center;">
            <asp:Button  ID="btnCancel" runat="server" Text="Отмена"  BackColor="#C0D0D6" ForeColor="Black"
                Height="26px" OnClick="btnCancel_Click" BorderStyle="Outset" CausesValidation="false" />&nbsp &nbsp &nbsp &nbsp
            <asp:Button  ID="btnSave" runat="server" Text="Сделать заказ"  BackColor="#C0D0D6" ForeColor="Black"
                Height="26px"  OnClick="btnSave_Click" BorderStyle="Outset"/>          
         </div>
      </div>

    </asp:Content>


